.class public Les/mf0;
.super Ljava/lang/Object;
.source "SaveTask.java"


# instance fields
.field private final a:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Landroid/content/Context;",
            ">;"
        }
    .end annotation
.end field

.field private final b:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Lcom/jecelyin/editor/v2/ui/b;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Lcom/jecelyin/editor/v2/ui/a;",
            ">;"
        }
    .end annotation
.end field

.field private d:Z

.field private e:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/jecelyin/editor/v2/ui/b;Lcom/jecelyin/editor/v2/ui/a;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/mf0;->d:Z

    .line 3
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Les/mf0;->a:Ljava/lang/ref/WeakReference;

    .line 4
    new-instance p1, Ljava/lang/ref/WeakReference;

    invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object p1, p0, Les/mf0;->b:Ljava/lang/ref/WeakReference;

    .line 5
    new-instance p1, Ljava/lang/ref/WeakReference;

    invoke-direct {p1, p3}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object p1, p0, Les/mf0;->c:Ljava/lang/ref/WeakReference;

    return-void
.end method

.method static synthetic a(Les/mf0;)Ljava/lang/ref/WeakReference;
    .locals 0

    .line 2
    iget-object p0, p0, Les/mf0;->c:Ljava/lang/ref/WeakReference;

    return-object p0
.end method

.method private a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V
    .locals 14

    move-object v6, p0

    .line 17
    iget-object v0, v6, Les/mf0;->b:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, v6, Les/mf0;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 18
    iput-boolean v0, v6, Les/mf0;->d:Z

    .line 19
    new-instance v13, Les/ff0;

    iget-object v0, v6, Les/mf0;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    move-object v8, v0

    check-cast v8, Landroid/content/Context;

    iget-object v0, v6, Les/mf0;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Context;

    invoke-static {v0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->v()Z

    move-result v12

    move-object v7, v13

    move-object v9, p1

    move-object/from16 v10, p2

    move-object/from16 v11, p3

    invoke-direct/range {v7 .. v12}, Les/ff0;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Z)V

    .line 20
    new-instance v7, Les/mf0$a;

    move-object v0, v7

    move-object v1, p0

    move-object/from16 v2, p2

    move-object v3, p1

    move-object/from16 v4, p3

    move-object/from16 v5, p4

    invoke-direct/range {v0 .. v5}, Les/mf0$a;-><init>(Les/mf0;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V

    invoke-virtual {v13, v7}, Les/ff0;->a(Les/ff0$b;)V

    .line 21
    iget-object v0, v6, Les/mf0;->b:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/ui/b;

    invoke-virtual {v13, v0}, Les/ff0;->a(Lcom/jecelyin/editor/v2/ui/b;)V

    :cond_1
    :goto_0
    return-void
.end method

.method static synthetic a(Les/mf0;Z)Z
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/mf0;->d:Z

    return p1
.end method

.method static synthetic b(Les/mf0;)Ljava/lang/ref/WeakReference;
    .locals 0

    .line 1
    iget-object p0, p0, Les/mf0;->a:Ljava/lang/ref/WeakReference;

    return-object p0
.end method

.method static synthetic c(Les/mf0;)Ljava/lang/ref/WeakReference;
    .locals 0

    .line 1
    iget-object p0, p0, Les/mf0;->b:Ljava/lang/ref/WeakReference;

    return-object p0
.end method

.method static synthetic d(Les/mf0;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/mf0;->e:Z

    return p0
.end method


# virtual methods
.method public a(Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V
    .locals 1

    const/4 v0, 0x0

    .line 16
    invoke-direct {p0, p1, v0, p2, p3}, Les/mf0;->a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V

    return-void
.end method

.method public a(ZLcom/jecelyin/editor/v2/common/c;)V
    .locals 3

    .line 4
    iget-boolean v0, p0, Les/mf0;->d:Z

    if-eqz v0, :cond_1

    if-eqz p2, :cond_0

    .line 5
    invoke-interface {p2}, Lcom/jecelyin/editor/v2/common/c;->a()V

    :cond_0
    return-void

    .line 6
    :cond_1
    iget-object v0, p0, Les/mf0;->c:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/ui/a;

    .line 7
    iget-object v1, p0, Les/mf0;->b:Ljava/lang/ref/WeakReference;

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/jecelyin/editor/v2/ui/b;

    if-eqz v0, :cond_7

    if-nez v1, :cond_2

    goto :goto_0

    .line 8
    :cond_2
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->f()Z

    move-result v2

    if-nez v2, :cond_4

    if-eqz p2, :cond_3

    .line 9
    invoke-interface {p2}, Lcom/jecelyin/editor/v2/common/c;->a()V

    :cond_3
    return-void

    .line 10
    :cond_4
    iput-boolean p1, p0, Les/mf0;->e:Z

    .line 11
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->b()Ljava/io/File;

    move-result-object p1

    if-nez p1, :cond_5

    .line 12
    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/ui/b;->q()V

    return-void

    .line 13
    :cond_5
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->g()Z

    move-result v1

    if-eqz v1, :cond_6

    .line 14
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->e()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v1, p1, v0, p2}, Les/mf0;->a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V

    goto :goto_0

    :cond_6
    const/4 v1, 0x0

    .line 15
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, p1, v1, v0, p2}, Les/mf0;->a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Lcom/jecelyin/editor/v2/common/c;)V

    :cond_7
    :goto_0
    return-void
.end method

.method public a()Z
    .locals 1

    .line 3
    iget-boolean v0, p0, Les/mf0;->d:Z

    return v0
.end method
